﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using Avatar.MembershipService;

public partial class Management_Top : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string _role = string.Empty;
        foreach (var _r in Roles.GetRolesForUser())
        {
            _role += _r + " ";
        }
        lbl_User.Text = Membership.GetUser().UserName + "[" + _role.Trim() + "]";

    }
    protected void btn_Logout_Click(object sender, EventArgs e)
    {
        LoginManager.Logout();
        Response.Redirect("~/");
    }
}
